#!/usr/bin/env php
<?php
/**
 * Leaps console bootstrap file.
 *
 * @link http://www.tintsoft.com/
 * @copyright Copyright (c) 2008 Tintsoft LLC
 * @license http://www.tintsoft.com/license/
 */
// fcgi doesn't have STDIN and STDOUT defined by default
defined('STDIN') or define('STDIN', fopen('php://stdin', 'r'));
defined('STDOUT') or define('STDOUT', fopen('php://stdout', 'w'));
require ( __DIR__  . '/protected/Wekit.php');
$config = include __DIR__  . '/protected/Config/console.php';
$application = new \Leaps\Console\Application($config);
$exitCode = $application->run ();
exit($exitCode);